package com.hsmpay.common.util;

import java.util.HashMap;
import java.util.Map;

public class OrderTypeUtil {
    private static Map<Long, String> oTMap = new HashMap<Long, String>();
    public static Map<Integer,String> broStatusMap = new HashMap<Integer, String>();

    public static Long BINDING_BANK_CARD = -2L;//绑定银行卡
    public static Long BALANCE_ENQUIRY = -3l;//查询余额

    public static final Long RECEIVABLES = 1L;//我要收款
    public static final String RECEIVABLES_STR = "收款";

    public static final Long PAY = 2L;//我要付款
    public static final Long CARD_TRANSFER = 3L;//卡卡转账
    public static final Long CREDIT_REPAYMENT = 4L;//信用卡还款
    //	public static final Long OPEN_TRANSFER = 5L;//开通卡卡转账
//	public static final String OPEN_TRANSFER_STR = "开通卡卡转账";//开通卡卡转账
    public static final Long CASH_MONEY_T1 = 6L;//T+1 提现
    public static final String CASH_MONEY_T1_STR = "T+1 提现";
    public static final Long MOBILE_CHARGE = 7L;//话费充值

    public static final Long ENQUIRY = -4l;//查询订单
    public static final Long REVOCATION = -5l;//撤销
    public static final Long CLEAR_MONEY = 0L;//结算
    public static final Long CASH_MONEY = 8L;//提现
    public static final Long AUTO_CASH_MONEY = 16L;//自动提现
    public static final String CASH_MONEY_STR = "提现";//提现
    public static final Long ZEROFLPAY = 11L;//零费率收款
    public static final String ZEROFLPAY_STR = "零费率收款";
    public static final Long SECONDSTO = 12L;//秒到收款
    public static final String SECONDSTO_STR = "秒到收款";
    public static final Long JQ_CASH_MONEY = 17L;//进钱秒到提现

    static {
        //oTMap.put(-3l, "查询余额");
        //oTMap.put(-2l, "绑定银行卡");
        //oTMap.put(-1l, "充值");
        oTMap.put(0l, "结算");
        oTMap.put(1l, "收款");
        //oTMap.put(2l, "我要付款");
        oTMap.put(3l, "卡卡转账");
        oTMap.put(4l, "信用卡还款");
        //oTMap.put(5l, "开通卡卡转账");
        //oTMap.put(6l, "开通信用卡还款");
        oTMap.put(7l, "话费充值");
        oTMap.put(8l, "提现");
        oTMap.put(11l, "零费率收款");
        oTMap.put(12l, "秒到收款");

        //佣金订单状态
        broStatusMap.put(0, "结算失败");
        broStatusMap.put(1, "结算成功");
        broStatusMap.put(2, "结算中");
        broStatusMap.put(3, "等待结算");
        broStatusMap.put(4, "等待父级拨款");
        broStatusMap.put(5, "交易关闭");
        broStatusMap.put(6, "等待拨款");
        broStatusMap.put(7, "暂停结算");
        broStatusMap.put(8, "等待直属子级拨款");
        broStatusMap.put(9, "等待代理商结算");
        broStatusMap.put(11, "存在违法嫌疑");
    }

    public static String getOTDesc(Long otId) {
        String desc = oTMap.get(otId);
        return null == desc ? "" : desc;
    }

    public static Map<Long, String> getOTMap() {
        return oTMap;
    }
}
